CREATE TABLE [dbo].[PHU_THU_PHONG_DON]
(
[MA_TOUR] [char] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[LOAI_KHACH] [char] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[GIA] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PHU_THU_PHONG_DON] ADD CONSTRAINT [CK__PHU_THU_P__LOAI___239E4DCF] CHECK (([LOAI_KHACH]='VIET NAM' OR [LOAI_KHACH]='NUOC NGOAI' OR [LOAI_KHACH]='VIET KIEU'))
GO
ALTER TABLE [dbo].[PHU_THU_PHONG_DON] ADD CONSTRAINT [CK__PHU_THU_PHO__GIA__24927208] CHECK (([GIA]>=(0)))
GO
ALTER TABLE [dbo].[PHU_THU_PHONG_DON] ADD CONSTRAINT [PK_PTPD] PRIMARY KEY CLUSTERED  ([MA_TOUR], [LOAI_KHACH]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PHU_THU_PHONG_DON] ADD CONSTRAINT [FK_PHUTHUPHGDON_TOUR] FOREIGN KEY ([MA_TOUR]) REFERENCES [dbo].[TOUR] ([MA_TOUR])
GO
